package Song.Han.day03.demo02;

public class Dome05PhoneReturn {
    public static void main(String[] args) {
        Phone two = getPhone();
        System.out.println(two.brand);
        System.out.println(two.price);
        System.out.println(two.color);
    }

    public static Phone getPhone(){
        Phone one = new Phone();
        one.brand = "苹果";
        one.price = 5999;
        one.color = "土豪金";

        //返回的是对象的地址值
        return one;
    }
}
